package cn.bellychang.deferredresult;

import cn.bellychang.response.Response;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.async.DeferredResult;

import java.util.HashMap;
import java.util.Map;

/**
 * @author ChangLiang
 * @date 2020/9/23
 */
@Component
public class DeferredResultHolder {

    private Map<Long, DeferredResult<Response>> map = new HashMap<>();

    public Map<Long, DeferredResult<Response>> getMap() {
        return map;
    }
}
